package com.bnq.control.desktop.interfaces;

import android.view.MotionEvent;

public interface IOnGestureListener {
	/**
	 * Notified when a tap occurs with the up {@link MotionEvent} that triggered
	 * it.
	 * 
	 * @param event
	 *            The up motion event that completed the first tap
	 * @return true if the event is consumed, else false
	 */
	void onSingleTap(MotionEvent event);

	/**
	 * Notified when a double-tap occurs.
	 * 
	 * @param e
	 *            The down motion event of the first tap of the double-tap.
	 * @return true if the event is consumed, else false
	 */
	void onDoubleTap(MotionEvent e);

	/**
	 * Notified when a long press occurs with the initial on down
	 * {@link MotionEvent} that trigged it.
	 * 
	 * @param e
	 *            The initial on down motion event that started the longpress.
	 */
	void onLongPress(MotionEvent e);

	void onSingleTapConfirmed(MotionEvent e);
}
